package com.glodon.cloud.fegin.rpc;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * fallback指定断路器
 * @author zhangjq
 *
 */
@FeignClient(value="SERVICE-USER",fallback=UserServiceHystrix.class)
public interface UserServiceFegin {
	
	@RequestMapping(value="/user/id/{id}",method = RequestMethod.GET)
	public String getUserById(@PathVariable("id") String id);
	
}
